package com.mls.fivedistrict.server;

import com.mls.fivedistrict.common.PageFilter;
import com.mls.fivedistrict.pojo.WithdrawRecord;

import java.util.List;
import java.util.Map;

/**
 * Created by chenxiuxiang on 2018/5/5.
 */
public interface WithdrawRecordService {

    int addWithdrawRecord(WithdrawRecord withdrawRecord);

    int updateWithdrawValue(WithdrawRecord withdrawRecord);

    List<WithdrawRecord> getWithdrawRecordList(PageFilter pageFilter);

    /**
     * 更新资产状态
     *
     * @param map
     * @return
     */
    int updateWithdrawStatus(Map map);

    /**
     * 48小时未提现成功的订单驳回
     */
    int rejectWithdraw();

    WithdrawRecord getDetail(Long id);


    int deleteWithdrawRecord(Long withdrawRecordId);


    double getWithdrawRecordSum(PageFilter pageFilter);
}
